<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php
echo JhtraqHelper::drawTabs($this->project->slug);
?>
<p></p>
<div class="componentheading">
<?php echo $this->project->name; ?> - <?php echo JText::_('COM_JHTRAQ_RELEASES');?>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<thead>
<tr>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_RELEASE_NAME');?></td>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_RELEASE_DATE');?></td>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_FILE_SIZE');?></td>
<td class="sectiontableheader"><?php echo JText::_('COM_JHTRAQ_DOWNLOADS');?></td>
</tr>	
</thead>
<tbody>
<?php
$r = 0;
foreach($this->releases as $release)
{
	?>
	<tr class="sectiontableentry<?php echo $r + 1; ?>">
	<td><a href="<?php echo JRoute::_('index.php?option=com_jhtraq&view=releases&task=download&project='.$this->project->slug.'&download='.$release['id']);?>"><?php echo $release['name'];?></a></td>
	<td><?php echo DATE(JText::_('COM_JHTRAQ_DATE_SHORT'), $release['released']);?></td>
	<td><?php echo $release['download_size'];?></td>
	<td><?php echo $release['downloads'];?></td>
	</tr>
	
<?php
}
?>

</tbody>
</table>